import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import MyCenter from '../views/MyCenter'
import LoginModule from '../components/LoginModule'
import RegisterModule from '../components/RegisterModule'
const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/my',
    name: 'MyCenter',
    component: MyCenter
  },
  {
    path: '/login',
    name: 'LoginModule',
    component: LoginModule
  },
  {
    path: '/register',
    name: 'RegisterModule',
    component: RegisterModule
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
